[fix] allow SvelteKit to be used without bundling#7950
Conversation
🦋 Changeset detectedLatest commit: 147c0e1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
this is neat! can we rely on |
|
using |
Yes. If they weren't then the code currently in |
Co-authored-by: Geoff Rich <[email protected]>
|
We still have |
|
Thanks! I wasn't aware of |
Banish
import.meta.envfrom our codebase so that@sveltejs/kitworks without bundlingFixes vitest-dev/vitest#2298 and a ton of other issues I've seen like this around the ecosystem
We should probably print a big loud warning when running
svelte-packageif anyone tries to useimport { browser, dev } from '$app/environment'and tell them to useesm-envunless they intend for their package to only be used in SvelteKit (#8033)